package dfbz.homework1;

public class Book {
    private String bh;
    private String sm;
    private String bm;
    private int price;
    private String date;

    public Book() {
    }

    public Book(String bh, String sm, String bm, int price, String date) {
        this.bh = bh;
        this.sm = sm;
        this.bm = bm;
        this.price = price;
        this.date = date;
    }

    public String getBh() {
        return bh;
    }

    public void setBh(String bh) {
        this.bh = bh;
    }

    public String getSm() {
        return sm;
    }

    public void setSm(String sm) {
        this.sm = sm;
    }

    public String getBm() {
        return bm;
    }

    public void setBm(String bm) {
        this.bm = bm;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }
    public void showBook(){
            System.out.println("最贵的书是：" + this.bh + "," + this.sm + "," + this.bm+","+this.price+","+date);
    }
}
